
/**
 * @description InvStockServiceImpl.java
 * @author dongbin
 * @version 
 * @copyright
 */

package com.erp.common.inv.stock.service.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.erp.common.inv.input.dao.InvInputHeadDao;
import com.erp.common.inv.stock.dao.InvStockDao;
import com.erp.common.inv.stock.service.InvStockService;

/**
 * @description
 * @date 2020年11月19日
 * @author dongbin
 * 
 */
@Service("invStockServiceCommon")
@Transactional(rollbackFor=Exception.class)
public class InvStockServiceImpl implements InvStockService {
    
    //注入Dao
    @Autowired
    @Qualifier("invStockDaoCommon")
    private InvStockDao invStockDao;

    @Override
    public Double getMaterialStockNumber(String materialCode) {
        return this.invStockDao.getMaterialStockNumber(materialCode);
    }
    
}
